package homework06;

import java.util.HashSet;
import java.util.Set;

public class Test {
    public static void main(String[] args) {
        Student student = new Student("张三","男",20);
        Student student1 = new Student("李四","女",21);
        Student student2 = new Student("张三","男",20);

        HashSet<Student> hashSet=new HashSet<>();
        hashSet.add(student);
        hashSet.add(student1);
        hashSet.add(student2);

        for (Student student3 : hashSet) {
            System.out.println(student3);
        }
    }
}
